#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File        :   344.反转字符串.py    
@Contact     :   lhouctcs@163.com
@License     :   MIT
@Time        :   2023/2/8 14:37
@Author      :   lhou 
@Version     :   0.1.0
@Description :
"""
from typing import List


# import lib
class Solution:
    def reverseString(self, s: List[str]) -> None:
        """
        Do not return anything, modify s in-place instead.
        """
        l = 0
        r = len(s) - 1
        while l <= r:
            s[l], s[r] = s[r], s[l]
            r -= 1
            l += 1
